#ifndef CUBER_H
#define CUBER_H

#include "platform.h"
class CCuber{
  public:
	enum{
	  kDoorStateOpen=0,
	  kDoorStateClosed=1,
	  kDoorStateDefault=kDoorStateClosed,
	};
  public:
  	CCuber();
	virtual ~CCuber();
	virtual UDK_HANDLE Connect(const char* parameters)=0;
	virtual void Disconnect(UDK_HANDLE h)=0;
	virtual int GetLastError()=0;
  
	virtual int SearchDevices(char *CommType,char *Address, char *Buffer,int *BufferLength)=0;
	virtual int GetLockCount(UDK_HANDLE h)=0;
	virtual int SetLockState(UDK_HANDLE h,int lock_no,int opentime)=0;
	virtual int GetLockState(UDK_HANDLE h,int lock_no)=0;
    virtual int GetComPwd(UDK_HANDLE h, char *buffer, int *BufferLen)=0;
	virtual int MobileAtt(UDK_HANDLE h, int operate, char *premeters, char *Buffer, int* BufferLength)=0;
	virtual int GetDeviceParam(UDK_HANDLE h, char *Buffer, int Bufferlen, char *Item)=0;
	virtual int SetDeviceParam(UDK_HANDLE h, char *ItemandValues)=0;
	virtual int SetDownloadProcessCallBack(UDK_HANDLE h, void *pCallBackFun)=0;
	virtual int ResetDeviceExt(UDK_HANDLE h, char *parameters)=0;
};
#endif //CUBER_H
